package com.xnyzc.lhy.mis.controller.cmsapi.punishment;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.punishment.OaDUserPunishmentThawunlockParam;
import com.xnyzc.lhy.mis.entity.param.punishment.OaDUserSinglePunishmentThawunlockParam;
import com.xnyzc.lhy.mis.service.punishment.IOaDUserPunishmentThawunlockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 司机处罚解封解冻表 前端控制器
 * </p>
 *
 * @author cuichaoqun
 * @since 2019-10-27
 */
@RestController
@Api(value="司机解封解冻",tags={"司机解封解冻"})
@RequestMapping("/cmsapi/oaDUserPunishmentThawunlock")
public class OaDUserPunishmentThawunlockController {
    @Autowired
    IOaDUserPunishmentThawunlockService iOaDUserPunishmentThawunlockService;
    /**
     * 司机提前全局解封解冻操作
     * */
    @ApiOperation(value = "司机提前全局解封解冻操作", notes = "司机提前全局解封解冻操作")
    @PostMapping(value = "/globalUnsealingAndThawingOperation")
    public Rv globalUnsealingAndThawingOperation(@RequestBody OaDUserPunishmentThawunlockParam oaDUserPunishmentThawunlockParam) {
        return iOaDUserPunishmentThawunlockService.globalUnsealingAndThawingOperation(oaDUserPunishmentThawunlockParam);
    }


    /**
     * 司机部分解封解冻操作
     * Part of driver unseal defrosting operation
     * */
    @ApiOperation(value = "司机部分解封解冻操作", notes = "司机部分解封解冻操作")
    @PostMapping(value = "/partOfDriverUnsealDefrostingOperation")
    public Rv partOfDriverUnsealDefrostingOperation(@RequestBody OaDUserSinglePunishmentThawunlockParam oaDUserSinglePunishmentThawunlockParam) {
        return iOaDUserPunishmentThawunlockService.partOfDriverUnsealDefrostingOperation(oaDUserSinglePunishmentThawunlockParam);
    }
}
